package org.dbutily.service.impl;

import java.util.List;
import java.util.Map;

import org.dbutily.dao.DbMapper;
import org.dbutily.service.DbSQLService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@Transactional
public class DbSQLServiceImpl implements DbSQLService {

	@Autowired
	private DbMapper dbMapper;

	@Override
	public List<Map<String, Object>> query(String sql, String schema) {
		return dbMapper.findExcuteSql(sql);
	}

}
